<extend NAME="Base/common"/>
<block name="right">
    <div class="right-panel-w">
        <div class="right-panel-top">用户日志</div>
        <div class="right-panel-main">
            <div class="wt-main-top">
                <form action="{:U('Log/index')}" method="get" id="search">
                    <select class="select2" name="tag">
                        <option value="" onclick="submitForm('search')" <eq name="search" value="">selected="selected"</eq>>全部</option>
                        <option value="add_task" onclick="submitForm('search')" <eq name="search" value="add_task">selected="selected"</eq>>提交委托申请</option>
                        <option value="modify_task" onclick="submitForm('search')" <eq name="search" value="modify_task">selected="selected"</eq>>修改委托申请</option>
                        <option value="revoke_task" onclick="submitForm('search')" <eq name="search" value="revoke_task">selected="selected"</eq>>撤销委托申请</option>
                    </select>
                </form>
            </div>
            <table class="table table-striped">
                <tr>
                    <td>ID</td>
                    <td>时间</td>
                    <td>事件</td>
                </tr>
                <empty name="_list">
                    <tr>
                        <td colspan="3">对不起暂时没有数据</td>
                    </tr>
                    <else/>
                    <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.create_time|date="Y-m-d",###}</td>
                        <td>{$vo.remark}</td>
                    </tr>
                    </volist>
                </empty>
            </table>
            {$_page}
        </div>
    </div>
</block>
<!--
<block name="script">
    <script>
        highlight_subnav('{:U('Log/index',array('tag'=>'add_task'))}');
    </script>
</block>-->

<block name="script">
    <script>
        function submitForm(form){
            var txtform = '#'+form;
            $(txtform).submit();
        }
    </script>
    <script>
        highlight_subnav('{:U('Log/index')}');/*,array('tag'=>add_task)*/
    </script>
</block>
